<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
		'id' => 'batch-form',
        'type' => 'horizontal',
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

		<?php echo $form->textFieldRow($model,'batch_code',array('size'=>5,'maxlength'=>5)); ?>

		<?php echo $form->datepickerRow($model,'batch_year',
                                        array('prepend' => '<i class="icon-calendar"></i>',
                                              'options'=> array('format'=>'yyyy/mm/dd',
                                                                'weekStart'=>1, 
                                                                'showButtonPanel'=> true,
                                                                'showAnim'=> 'fold',))); ?>
	<?php
	
	$person = array(new Volunteer());
	$this->widget('ext.widgets.tabularinput.XTabularInput',array(
    'models'=>$person,
    'inputView'=>'/batch/_tabularInputAsTable',
    'inputUrl'=>$this->createUrl('request/addTabularInputsAsTable'),
    'addTemplate'=>'{link}',
    'addLabel'=>Yii::t('ui','<i class="icon-plus icon-white"></i>'),
    'addHtmlOptions'=>array('class'=>'btn btn-primary'),
    'removeTemplate'=>'{link}',
    'removeLabel'=>Yii::t('ui','<i class="icon-trash icon-white"></i>'),
    'removeHtmlOptions'=>array('class'=>'btn btn-danger'),
));	
		?>
     <div class="row">
         <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit','type'=>'info','label'=>'create','icon'=>'ok-circle white')); ?>
         <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'reset', 'label'=>'cancel','icon'=>'remove-circle')); ?>
    </div>
<?php $this->endWidget(); ?>

